<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 14-2-24
 * Time: 下午3:35
 * To change this template use File | Settings | File Templates.
 */
require dirname ( __FILE__ ) . '/admin/lib/init.php';

$_POST = addslashes_deep ( $_POST );
global $db;

$table = "kt_cv";
$username = $_POST ["username"];
$gender = $_POST ["gender"];
$birthday = $_POST ["birthday"];
$phone = $_POST ["phone"];
$address = $_POST ["address"];
$zip = $_POST ["zip"];
$email = $_POST ["email"];
$educode = $_POST ["educode"];
$city = $_POST ["city"];
$certcode = $_POST ["certcode"];
$english = $_POST ["english"];
$intro = $_POST ["intro"];
$education = $_POST ["education"];
$workexp = $_POST ["workexp"];
$skill = $_POST ["skill"];
$salary = $_POST ["salary"];
$wantpay = $_POST ["wantpay"];
$corpview = $_POST ["corpview"];
$data = array (
    'name' => $username
);
$data ["sex"] = $gender;
$data ["birthday"] = $birthday;
$data ["phone"] = $phone;
$data ["address"] = $address;
$data ["zipcode"] = $zip;
$data ["email"] = $email;
$data ["education"] = $educode;
$data ["city"] = $city;
$data ["idcard"] = $certcode;
$data ["englishlevel"] = $english;
$data ["self_evaluation"] = $intro;
$data ["edu_background"] = $education;
$data ["experience"] = $workexp;
$data ["skill"] = $skill;
$data ["cur_money"] =$salary ;
$data ["exp_money"] = $wantpay;
$data ["idea"] = $corpview;

//print_r($data);
echo $db->insert ( $table, $data );

header("Location:self-introduction.php");